import request from '../utils/request';
// let baseURL = 'http://192.168.20.35:8866';
let baseURL = '';


export function getBoardList(data={}){
    return request.get('/client/dataView/getEquipmentDashboards', { data, baseURL, noprefix:true }).catch(err=>console.log(err)); 
}

export function addBoard(data = {}){
    return request.post('/client/dataView/addEquipmentDashboards', { data }, { noprefix:true }).catch(err=>console.log(err));
}

export function getEnergySumInfo(data={}){
    return request.get('/client/dataView/getSysEnergyEfficiency', { data, baseURL, noprefix:true }).catch(err=>console.log(err)); 
}

export function getCOPTrend(data={}){
    return request.get('/client/dataView/getCOPTrend', { data, baseURL, noprefix:true }).catch(err=>console.log(err)); 
}

export function getEERTrend(data={}){
    return request.get('/client/dataView/getEERTrend', { data, baseURL, noprefix:true }).catch(err=>console.log(err)); 
}

export function getColdTrend(data={}){
    return request.get('/client/dataView/getCCTrend', { data, baseURL, noprefix:true }).catch(err=>console.log(err)); 
}

export function test(data={}){
    return request.get('/login?username=admin&password=MDAwMA==&authCode=', { data, baseURL, noprefix:true }).catch(err=>console.log(err)); 
}

